package com.nbsaas.boot.merchant.rest.convert;

import com.nbsaas.boot.merchant.data.entity.MerchantCategory;
import com.nbsaas.boot.merchant.api.domain.response.MerchantCategoryResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 商家分类-实体对象转化成响应对象
*/

public class MerchantCategoryResponseConvert  implements Converter<MerchantCategoryResponse,MerchantCategory> {

    @Override
    public MerchantCategoryResponse convert(MerchantCategory source) {
        MerchantCategoryResponse  result = new  MerchantCategoryResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

